package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.GwPlatformRoleMenuPcMapper;
import com.ruoyi.system.domain.GwPlatformRoleMenuPc;
import com.ruoyi.system.service.IGwPlatformRoleMenuPcService;

/**
 * 平台PC端角色菜单关联Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-05-26
 */
@Service
public class GwPlatformRoleMenuPcServiceImpl implements IGwPlatformRoleMenuPcService 
{
    @Autowired
    private GwPlatformRoleMenuPcMapper gwPlatformRoleMenuPcMapper;

    /**
     * 查询平台PC端角色菜单关联
     * 
     * @param platformRoleId 平台PC端角色菜单关联主键
     * @return 平台PC端角色菜单关联
     */
    @Override
    public GwPlatformRoleMenuPc selectGwPlatformRoleMenuPcByPlatformRoleId(String platformRoleId)
    {
        return gwPlatformRoleMenuPcMapper.selectGwPlatformRoleMenuPcByPlatformRoleId(platformRoleId);
    }

    /**
     * 查询平台PC端角色菜单关联列表
     * 
     * @param gwPlatformRoleMenuPc 平台PC端角色菜单关联
     * @return 平台PC端角色菜单关联
     */
    @Override
    public List<GwPlatformRoleMenuPc> selectGwPlatformRoleMenuPcList(GwPlatformRoleMenuPc gwPlatformRoleMenuPc)
    {
        return gwPlatformRoleMenuPcMapper.selectGwPlatformRoleMenuPcList(gwPlatformRoleMenuPc);
    }

    /**
     * 新增平台PC端角色菜单关联
     * 
     * @param gwPlatformRoleMenuPc 平台PC端角色菜单关联
     * @return 结果
     */
    @Override
    public int insertGwPlatformRoleMenuPc(GwPlatformRoleMenuPc gwPlatformRoleMenuPc)
    {
        return gwPlatformRoleMenuPcMapper.insertGwPlatformRoleMenuPc(gwPlatformRoleMenuPc);
    }

    /**
     * 修改平台PC端角色菜单关联
     * 
     * @param gwPlatformRoleMenuPc 平台PC端角色菜单关联
     * @return 结果
     */
    @Override
    public int updateGwPlatformRoleMenuPc(GwPlatformRoleMenuPc gwPlatformRoleMenuPc)
    {
        return gwPlatformRoleMenuPcMapper.updateGwPlatformRoleMenuPc(gwPlatformRoleMenuPc);
    }

    /**
     * 批量删除平台PC端角色菜单关联
     * 
     * @param platformRoleIds 需要删除的平台PC端角色菜单关联主键
     * @return 结果
     */
    @Override
    public int deleteGwPlatformRoleMenuPcByPlatformRoleIds(String[] platformRoleIds)
    {
        return gwPlatformRoleMenuPcMapper.deleteGwPlatformRoleMenuPcByPlatformRoleIds(platformRoleIds);
    }

    /**
     * 删除平台PC端角色菜单关联信息
     * 
     * @param platformRoleId 平台PC端角色菜单关联主键
     * @return 结果
     */
    @Override
    public int deleteGwPlatformRoleMenuPcByPlatformRoleId(String platformRoleId)
    {
        return gwPlatformRoleMenuPcMapper.deleteGwPlatformRoleMenuPcByPlatformRoleId(platformRoleId);
    }
}
